import request from '@/router/axios'

export function fetchWxConfigurationList(query) {
  return request({
    url: '/mp/wxconfiguration/page',
    method: 'get',
    params: query
  })
}

export function addWxConfigurationObj(obj) {
  return request({
    url: '/mp/wxconfiguration',
    method: 'post',
    data: obj
  })
}

export function getWxConfigurationObj(id) {
  return request({
    url: '/mp/wxconfiguration/' + id,
    method: 'get'
  })
}

export function delWxConfigurationObj(id) {
  return request({
    url: '/mp/wxconfiguration/' + id,
    method: 'delete'
  })
}

export function putWxConfigurationObj(obj) {
  return request({
    url: '/mp/wxconfiguration',
    method: 'put',
    data: obj
  })
}
